package com.example.tdck.service.impl;

import com.example.tdck.dao.MajorMapper;
import com.example.tdck.pojo.major;
import com.example.tdck.service.MajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:fjk
 * @Date: 2023/1/30 18:43
 */
@Service
public class MajorServiceImpl implements MajorService {
    @Autowired
    MajorMapper majorMapper;

    @Override
    public List<major> getMajorByKey(String key){
        List<major> majorList = majorMapper.queryByKey(key);
        return majorList;
    }
}